package cn.limin.domain;

import java.io.Serializable;
import java.text.MessageFormat;

public class Pigeon implements Serializable {
    private Integer pNo;
    private String pName;
    private String pOwner;

    public Integer getpNo(){
        return this.pNo;
    }

    public void setpNo(Integer bNo){
        this.pNo =bNo;
    }

    public String getpName(){
        return this.pName;
    }

    public void setpName(String pName){
        this.pName = pName;
    }

    public String getpOwner(){
        return this.pOwner;
    }

    public void setpOwner(String pOwner){
        this.pOwner = pOwner;
    }

    public Pigeon(int pNo, String pName, String pOwner){
        this.pNo = pNo;
        this.pName = pName;
        this.pOwner = pOwner;
    }

    public Pigeon(){

    }

    @Override
    public String toString(){
        return MessageFormat.format("鸽子编号:{0}======鸽子名称:{1}======鸽子所有者:{2}",
                this.pNo,this.pName,this.pOwner);
    }

}
